package com.archermind.amosp;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

@SuppressWarnings("deprecation")
public class AmospOrderTabActivity extends TabActivity  {
	
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_amosp_order_tab);
	
    TabHost tabHost = getTabHost();  // The activity TabHost
    TabHost.TabSpec spec;  // Resusable TabSpec for each tab
    Intent intent;  // Reusable Intent for each tab

    // Do the same for the other tabs
    intent = new Intent().setClass(this, AmospOrderFoodActivity.class);
    spec = tabHost.newTabSpec("Food").setIndicator("Food")
                  .setContent(intent);
    tabHost.addTab(spec);

    intent = new Intent().setClass(this, AmospOrderDishActivity.class);
    spec = tabHost.newTabSpec("Dish").setIndicator("Dish")
                  .setContent(intent);
    tabHost.addTab(spec);
    
    
    intent = new Intent().setClass(this, AmospOrderDrinksActivity.class);
    spec = tabHost.newTabSpec("Drinks").setIndicator("Drinks")
                  .setContent(intent);
    tabHost.addTab(spec);

    intent = new Intent().setClass(this, AmospOrderListActivity.class);
    spec = tabHost.newTabSpec("Order").setIndicator("Order")
                  .setContent(intent);
    tabHost.addTab(spec);

    tabHost.setCurrentTab(1);
	}

}
